package cn.cm.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * 一个描述用户的类
 */
@TableName("sys_user")//指定这个实体所对应的数据库表
public class SysUser {
    /**
     * 用户ID
     */
    @TableId(value = "id",type = IdType.AUTO)//对应数据库主键
    private Integer id;
    /*
    * 用户名
    * */
    @TableField("name") //对应数据库字段
    private String name;
    /**
    * 用户密码
    * */
    @TableField("psw")
    private String password;
    /**
     * 描述：爱好
     * @author shikundai
     * @date 2021/6/29
     * @time 11:19
     */
    @TableField("hoby")
    private String hoby;
    /**
     * 描述：性别
     * @author shikundai
     * @date 2021/6/29
     * @time 11:20
     */
    @TableField("gender")
    private String gender;
    /**
     * 描述：年龄
     * @author shikundai
     * @date 2021/6/29
     * @time 11:20
     */
    @TableField("age")
    private Integer age;



    public String getHoby() {
        return hoby;
    }

    public void setHoby(String hoby) {
        this.hoby = hoby;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
